ImportError: Need nose
import numpy;numpy.test()
Running unit tests for numpy
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/site-packages/numpy/testing/nosetester.py", line 326, in test
self._show_system_info()
File "/usr/lib/python2.7/site-packages/numpy/testing/nosetester.py", line 187, in _show_system_info
nose = import_nose()
File "/usr/lib/python2.7/site-packages/numpy/testing/nosetester.py", line 69, in import_nose
raise ImportError(msg)
ImportError: Need nose >= 0.10.0 for tests - see http://somethingaboutorange.com/mrl/projects/nose
安装 pip
mac默认是不带pip的:
sudo easy_install pip
安装nose
最好用easy_install:
sudo easy_install nose
别用pip,我用pip装出各种问题
terminal退出phthon命令:
quit()
or
Control + D
安装matplotlib
sudo pip install matplotlib